{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "a1eb4de5-5cea-4f9a-8e02-4d4c25e8cae2",
   "metadata": {
    "tags": []
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{\"success\":false,\"data\":null,\"message\":\"JSON parse error: Cannot deserialize value of type `java.util.ArrayList<cn.jinlutech.mo.position.dto.PersonnelPosition>` from Object value (token `JsonToken.START_OBJECT`); nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize value of type `java.util.ArrayList<cn.jinlutech.mo.position.dto.PersonnelPosition>` from Object value (token `JsonToken.START_OBJECT`)\\n at [Source: (org.springframework.util.StreamUtils$NonClosingInputStream); line: 1, column: 1]\"}\n"
     ]
    }
   ],
   "source": [
    "import requests\n",
    "\n",
    "url='http://39.98.115.33:8546/api/device-position/personnel'\n",
    "headers = {\n",
    "    'Authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJtby13ZWIiLCJ0eXAiOiJCZWFyZXIiLCJpc3MiOiJodHRwOi8vMzMuOTguMTE1LjMzL2FwaSIsImlhdCI6MTcxODYyNDM4OSwiZXhwIjoxNzE4NjYwMzg5LCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJhZG1pbiIsInJvbGUiOlsiYWRtaW4iXSwiZ2VuZGVyIjoiMCIsImF6cCI6ImdiLW1vLWFwaSJ9.MmujOT5qW0f5Z8j112h-XCajA7V-2yDa2EoPVP--ryY'\n",
    "}\n",
    "json = {\n",
    "    \"portal\":2,\"lang\":\"zh-CN\",\"country\":\"CN\",\"brand\":1,\"province\":\"山西\",\"city\":\"太原\",\"pageNo\":1,\"pageSize\":20\n",
    "}\n",
    "\n",
    "\n",
    "res = requests.post(url=url, headers=headers, json=json)\n",
    "print(res.text)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "id": "920295c0-d600-4c72-9df2-ede8f59adc5a",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "(16,)\n",
      "[[ 0  1  2  3  4  5  6  7]\n",
      " [ 8  9 10 11 12 13 14 15]]\n",
      "[[ 0  1  2  3]\n",
      " [ 4  5  6  7]\n",
      " [ 8  9 10 11]\n",
      " [12 13 14 15]]\n"
     ]
    }
   ],
   "source": [
    "import numpy as np\n",
    "x=np.arange(16)\n",
    "print(x.shape)\n",
    "y=x.reshape(2,8)\n",
    "print(y)\n",
    "print(y.reshape(4,4))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "f164448d-10ca-48b6-89dd-86f247dccc5b",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "py39",
   "language": "python",
   "name": "py39"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.16"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
